package com.itzh.proxy.custom;

import com.itzh.proxy.jdk.Haipi;
import com.itzh.proxy.state.Person;

import java.io.IOException;
import java.lang.reflect.InvocationTargetException;

public class CustomProxyTest {
    public static void main(String[] args) throws IOException, ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException {
        Person obj = (Person)new CustomMaiPo().getInstance(new Haipi());
        System.out.println(obj.getClass());
        obj.findLove();
    }
}
